package org.iplatform.felicajack;

public class User {
	public int _userId;
	public String _userName;
	public int _numOfWin = 0;
	public int _numOfLose = 0;
	
	private int userIdCounter = 0;
	
	private void init() {
		this._userId = userIdCounter;
		userIdCounter++;
	}
	
	public User getInstance(String userName) {
		User user = new User();
		user.init();		
		user._userName = userName;		
		return user;
	}
	
	public void setWin() {
		_numOfWin++;
	}
	
	public void setLose() {
		_numOfLose++;
	}
	
	public String getUserName() {
		return _userName;
	}
	
	public int getWin() {
		return _numOfWin;
	}
	
	public int getLose() {
		return _numOfLose;
	}
	
}
